import request from'../utils/HTTP.js';

const API_URL_LOGIN = '/login';
const API_URL_USER = '/events';
const API_URL_SIGNUP = '/signup';
export const loginsApi = (params) => {
    return request({
        url: API_URL_LOGIN,
        method: 'POST',
        params: params,
    });
};

export const getUserDetailApi = (id) => {
    return request( {
        url: `API_URL_USER/${id}`,
        method: 'GET',
    });
};
export const signupApi = (params) => {
    return request({
        url: API_URL_SIGNUP,
        method: 'POST',
        params: params,
    })
}